package com.example.adminui.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.adminui.entity.TeamPerformance;
import com.example.adminui.mapper.TeamPerformanceMapper;
import com.example.adminui.service.TeamPerformanceService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeamPerformanceServiceImpl extends ServiceImpl<TeamPerformanceMapper, TeamPerformance> implements TeamPerformanceService {

    @Override
    public boolean saveTeamPerformance(TeamPerformance teamPerformance) {
        return save(teamPerformance);
    }

    @Override
    public boolean updateTeamPerformance(TeamPerformance teamPerformance) {
        return updateById(teamPerformance);
    }

    @Override
    public boolean deleteTeamPerformance(Long id) {
        return removeById(id);
    }

    @Override
    public TeamPerformance getTeamPerformanceById(Long id) {
        return getById(id);
    }

    @Override
    public List<TeamPerformance> getAllTeamPerformances() {
        return list();
    }
}